abstract class Animal1
{
    public String name;
    public int age;

    public Animal1(String name, int age) {
        this.name = name;
        this.age = age;
    }

    abstract public void eat();
}
class Dog1 extends Animal1
{
    public Dog1(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println(name+"吃狗粮");

    }
}
public class Test1 {
    public static void main(String[] args) {
        Dog1 dog=new Dog1("wangwang",10);
        dog.eat();
    }
}
